
    <form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
        <div class="table-responsive">
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th style="width: 1px;display:none"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"></th>
                    <th>ID</th>
                    <th>类别</th>
                    <th>学号</th>
                    <th>密码</th>
                    <th>添加时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="v"}
                    <tr>
                        <td style="display:none">
                            <input type="checkbox" name="selected[]" value="{$v.userid}">
                        </td>
                        <td>{$v.userid}</td>
                        <td>
                            {if $v['art_type']==1 }文科{/if}
                            {if $v['art_type']==2 }理科{/if}
                        </td>
                        <td>{$v.user_name}</td>

                        <td>{$v.pwd}
                        </td>
                        <td>{$v.add_time|date='Y-m-d H:i'}</td>
                        <td>
                            <a href="javascript:void(0);" onclick="openLayer('{:url('Admin/user/userEdit',array('id'=>$v['userid']))}','查看详情')" data-toggle="tooltip" title="查看详情" class="btn btn-primary" data-original-title="查看详情"><i class="fa fa-pencil"></i></a>
                            <a href="javascript:void(0);" onclick="del('{$v[userid]}',this)" id="button-delete6" data-toggle="tooltip" title="删除" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                        </td>
                    </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </form>
    <div class="row">
        <div class="col-sm-6 text-left" style="display:none"><a href="javascript:void(0);" onclick="delselect()" id="button-delete6" data-toggle="tooltip" title="删除" class="btn btn-danger" data-original-title="删除">删除选中</a></div>
        <div class="col-sm-6 text-right">{$page|raw}</div>
    </div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        url = $(this).attr('href');
        ajax_get_url('search-form2',url);
        return false;
    });
    // 删除选中
    function delselect(){
        parent.layer.confirm('确定要删除选中吗？', function(){
            $.ajax({
                url:"/index.php/Admin/user/delselect",
                data : $('#form-order').serialize(),
                success: function(v){
                    var v =  eval('('+v+')');
                    parent.layer.msg(v.msg, {icon: v.icon,time: 1000});
                    if(v.hasOwnProperty('status') && (v.status == 1))
                        ajax_get_table('search-form2',cur_page);
                }
            });
        });
    }
    //
</script>